<include file="public:header" />
<form action="{:u('links_type/edit')}" method="post" name="myform" id="myform"  style="margin-top:10px;">
  <div class="pad-10">
    <div class="col-tab">
      <ul class="tabBut cu-li">
        <li id="tab_setting_1">基本信息</li>
      </ul>
      <div id="div_setting_1" class="contentList pad-10">
        <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
          <tr> 
            <th>上级分类 :</th>
            <td>
                <select name="pid" style="width:150px;">
                        <option value="0" <if condition="$type_info.pid eq 0">selected="selected"</if>>--顶级分类--</option>
                  <volist name="type_list['parent']" id="val">
                          <option value="{$val.id}" <if condition="$type_info.pid eq $val['id']">selected="selected"</if>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$val.type_name}</option>
                  </volist>
                </select>
              </td>
          </tr>
          <tr> 
            <th width="100">分类名称 :</th>
            <td><input type="text" name="type_name" value="{$type_info.type_name}" id="type_name" class="input-text"></td>
          </tr>
          <tr>
            <th width="100">排序值 :</th>
            <td><input type="text" name="sort" value="{$type_info.sort}" id="sort" class="input-text" size="4" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
          </tr>
          <tr>
            <th>是否显示 :</th>
            <td><input type="hidden" name="id" value="{$type_info.id}" />
             	<input type="radio" name="hide" class="radio_style" value="1" <if condition="$type_info.hide eq 1">checked="checked"</if>> &nbsp;是&nbsp;&nbsp;&nbsp;
        		<input type="radio" name="hide" class="radio_style" value="0" <if condition="$type_info.hide eq 0">checked="checked"</if>> &nbsp;否
             </td>
          </tr>
        </table>
      </div>
      <div class="bk15"></div>
      <div class="btn"><input type="submit" value="{$Think.lang.submit}" onclick="return submitFrom();" name="dosubmit" class="button" id="dosubmit"></div>
    </div>
  </div>
</form>
</body></html>